package com.maxmlr.mybatisplus.common.resut;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

public class ResultPageBean extends ResultBean {
	private static final long serialVersionUID = 1L;

	private PageBean page;

	public ResultPageBean() {
		super();
	}

	public ResultPageBean(String code, String msg) {
		super(code, msg);
	}

	public ResultPageBean(Page<?> page) {
		setPage(page);
	}

	public ResultPageBean(PageBean page) {
		super();
		this.page = page;
	}

	public PageBean getPage() {
		return page;
	}

	public void setPage(PageBean page) {
		this.page = page;
	}

	public void setPage(Page<?> page) {
		setData(page);
		this.page = new PageBean(page);
	}

}
